#pragma once

#include "stdItemLib.h"

class Item
{
public:
	Item(){};
	Item(Point* p){playerPoint = p;}
	Item(stdItem std, Point p);
	void setInformation(stdItem std, Point p);
	void updata();
	void draw();
	bool checkRemove();
	static void setPoint(Point* p);
	Point getNowPoint()
	{
		return _std.bitmap.p;
	}
	int getKind()
	{
		return _std.kind;
	}
	void changeRemove()
	{
		_remove = true;
	}
	int getRange(){return _std.bitmap.range;}
protected:
private:
	inline void gameupdata();
	inline void initupdata();
	inline void gameDraw();
	inline void initDraw();
	inline void check();
	inline void calcSpd();
	inline void move();
	stdItem _std;
	int _angle;
	bool _remove;
	bool init;
	bool _follow;
	float _rotate;
	float vx,vy;
	static Point* playerPoint;
};